projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
361c982
)
pygrub: Revert 19322:3118041f2259, as it breaks timeout=0 behaviour
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 20 Aug 2009 07:23:33 +0000
(08:23 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 20 Aug 2009 07:23:33 +0000
(08:23 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/pygrub/src/pygrub
patch
|
blob
|
history
diff --git
a/tools/pygrub/src/pygrub
b/tools/pygrub/src/pygrub
index ac20aace67225bb26d4cd7ab9bff80778026f99d..93e157c4b767eca109279a813f0bcc3b40c68ac0 100644
(file)
--- a/
tools/pygrub/src/pygrub
+++ b/
tools/pygrub/src/pygrub
@@
-443,11
+443,7
@@
class Grub:
# Timed out waiting for a keypress
if mytime != -1:
mytime += 1
- # curses.timeout() does not work properly on Solaris
- # So we may come here even after a key has been pressed.
- # Check both timeout and mytime to avoid exiting
- # when we shouldn't.
- if timeout != -1 and mytime >= int(timeout):
+ if mytime >= int(timeout):
self.isdone = True
break
else: